package com.htdc.web.service;

import com.htdc.web.bean.User;
import com.htdc.web.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: Sfx
 * Date: 2018/9/4 0004
 * Time: 下午 7:06
 * To change this template use File | Settings | File Templates.
 */
@Service
public class UserService {
    @Autowired
    private UserDao dao;

    public User login(String account,String password){

        return dao.getUserByAccountAndPassword(account, password);
    }
}
